<?php

return [
    'URL_ROUTER_ON'        => true,
    'URL_ROUTE_RULES'      => [

        'trends'                       => 'Visitor/index',

        // 个人中心
        'my-videos'                    => 'Ucenter/activity',
        'my-fans'                      => 'Ucenter/fans',
        'my-follows'                   => 'Ucenter/follows',
        'my-games'                     => 'Ucenter/games',
        'favour-video/[:offset\d]'     => 'Ucenter/favourVideo',
        'favour-match/[:offset\d]'     => 'Ucenter/favourRace',
        'history-video/[:offset\d]'    => 'Ucenter/historyVideo',
        'history-match/[:offset\d]'    => 'Ucenter/historyRace',
        'profile'                      => 'Ucenter/profile',
        'account'                      => 'Ucenter/account',
        '/^password$/'                 => 'Ucenter/setPassword',

        // 他人主页
        '/^user-(\d+)$/'               => 'Others/index?uid=:1',

        'login'                        => 'User/login',
        'register'                     => 'User/register',
        'logout'                       => 'User/logout',
        'reset-password'               => 'Visitor/resetPwd',


        // 探索页
        'explore'                      => 'Explore/index',
        'explore-ajaxVideos'           => 'Explore/ajaxVideos',
        'explore-ajaxUsers'            => 'Explore/ajaxUsers',
        // 游戏专区页
        '/^game-(\d+)$/'               => 'Game/index?id=:1',

        // 比赛主页
        'match'                        => 'MatchV4/index',
        // 全部赛事
        'match-all'                    => 'MatchV4/all',
        // 游戏赛事
        '/^match-game-(\d+)$/'         => 'MatchV4/game?id=:1',
        // 比赛列表
        '/^match-races-(\d+)$/'        => 'MatchV4/races?id=:1',
        // 比赛播放页
        '/^match-group-(\d+)$/'        => 'MatchV4/group?id=:1',
        '/^match-detail-(\d+)$/'       => 'MatchV4/detail?id=:1',
        // 赛事新闻
        '/^match-news-(\d+)$/'         => 'MatchV4/news_list?id=:1',
        '/^match-news-detail-(\d+)$/'  => 'MatchV4/news_detail?id=:1',
        'match-news'                   => 'MatchV4/news_list',
        'match-ajaxRecent'             => 'Match/recentResult',

        // 视频详情
        '/^video-(\d+)$/'            => 'Share/video?id=:1',
        // iframe播放页
        '/^video-play-(\d+)$/'       => 'VideoPlay/play?id=:1',

        '/^video\/play-(\d+)$/'               => 'VideoPlay/htmlVideoPlay?id=:1',
        '/^video\/match-play-(\d+)$/'         => 'VideoPlay/htmlVideoPlay?id=:1',
        '/^video\/play-mobile-(\d+)$/'        => 'VideoPlay/htmlVideoPlay?id=:1&is_mobile=1',
        '/^video\/match-play-mobile-(\d+)$/'  => 'VideoPlay/htmlVideoPlay?id=:1&is_mobile=1',

        // 下载页
        'download-pc'                => 'Download/pc',
        '/^download$/'               => 'Download/index',
        '/^download\/app$/'          => 'Download/app',
        '/^download\/mobile$/'       => 'Download/mobile',
	    // 'download/android'           => 'Download/android',
        'tutorial'                   => 'Download/tutorial',

        // 常见问题、反馈
        'faq'                        => 'Faq/index',
        '/^faq-(\d+)$/'              => 'Faq/index?id=:1',
        'faq-ajaxDetail'             => 'Faq/detail',
        'faq-ajaxSearch'             => 'Faq/search',
        'faq-ajaxFrequent'           => 'Faq/frequent',
        '/^feedback$/'               => 'Feedback/pc',

        // 资讯公告
        'news'                       => 'News/lists?type=0',
        'notice'                     => 'News/lists?type=1',
        '/^news-(\d+)$/'             => 'News/detail?id=:1',
        'news-ajaxList'              => 'News/lists',

        // 搜索页
        'search-user'                => 'Search/user',
        'search-ajaxVideos'          => 'Search/ajaxVideos',
        'search-ajaxUsers'           => 'Search/ajaxUsers',
        'search'                     => 'Search/index',

        //战队页
        'team'                       => 'Team/index',
        '/^team-(\d+)$/'             => 'Team/index?id=:1',
        '/^team-videos-(\d+)$/'      => 'Team/videos?id=:1',
        '/^team-fans-(\d+)$/'        => 'Team/fans?id=:1',

        'showgirl'                   => 'Showgirl/index',
        'showgirl-comments'          => 'Showgirl/ajaxComments',
        'showgirl-download'          => 'Showgirl/download',

        'match/index'                => 'MatchV4/index',
        'match/all'                  => 'MatchV4/all',
        'match/game/:id\d'           => 'MatchV4/game',
        'match/races/:id\d'          => 'MatchV4/races',
        'match/group/:id\d'          => 'MatchV4/group',
        'match/detail/:id\d'         => 'MatchV4/detail',
        'match/news/list/[:id\d]'    => 'MatchV4/news_list',
        'match/news/detail/:id'      => 'MatchV4/news_detail',

        'active/luckybox/mobile'     => 'Active/luckybox?method=mobile',
        'active/luckybox/winner'     => 'Active/luckybox?method=winner',
    ],
];
